package com.yuntuzhilian.chapter4.demo3;


/**
 * @author MrWang-shuizhishuiheshui
 * @description
 */
public class Test {
    public static void main(String[] args) {
        //创建线程对象
        MyThread myThread=new MyThread();
        //将接口对象放到线程对象中使用
        Thread thread=new Thread(myThread);

        MyThread myThread1=new MyThread();
        Thread thread1=new Thread(myThread1);
        //启动子线程
        thread.start();
        thread1.start();

    }
}
